package main

import (
	many_many "demo/producer-consumer/many-many"
	"demo/producer-consumer/out"
	"os"
	"os/signal"
	"syscall"
)

func main() {
	o := out.NewOut()
	go o.Output()

	//out.Println("asadad")
	//out.Println("asadad")
	//out.Println("asadad")
	//out.Println("asadad")

	//one_one.Exec()
	//one_many.Exec()
	//many_one.Exec()
	many_many.Exec()

	sig := make(chan os.Signal)
	signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM)
	<-sig
}
